package com.xiaoying.server.publish.utils;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringUtil {

	private static ApplicationContext ctx;
	
    public  static ApplicationContext getInstance(){
    	if(ctx==null){
    		ctx = new ClassPathXmlApplicationContext("classpath:applicationContext-config.xml");
    	}
    	return ctx;
    }
		
		
		
	
	
	
	
}
